package com.lagerplan.misc;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import util.logging.LogLoader;

/**
 * Log4j Logging Setup
 * 
 * @author Q243471
 *
 */
public class Logging {

	private static Logger logger = Logger.getLogger( Logging.class );
	
	public static void initialize()
	{
		LogLoader.publicLogInit();
		// TODO Pfad zur Logging Datei in Config Datei halten
		PropertyConfigurator.configureAndWatch( "config/log4j/log4j.properties", 60*1000 );
		logger.info("Logging initialized.");
	}
}
